package com.cmwa.scbp.sys.attach.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;

import com.cmwa.scbp.base.mvc.controller.BaseController;

import com.cmwa.scbp.base.mvc.entity.Page;
import com.cmwa.scbp.base.mvc.entity.SearchParam;
import com.cmwa.scbp.sys.attach.entity.AttachRelExtVo;

import com.cmwa.scbp.sys.attach.service.AttachRelExtService;

/**
 * 附件扩展属性表控制器
 * 
 * @author ex-chenxh
 * @date 2019-02-15 13:36:34
 */
@Controller
@RequestMapping("/business/attach")
public class AttachRelExtController extends BaseController {

	private final static String JSP_PATH = "business/attach/";
	@Resource
	private AttachRelExtService attachInfoExtService;
		
	/**
	 * 跳转到列表页面
	 * @author ex-chenxh
	 * @date 2019-02-15 13:36:34
	 * @param model
	 * @return
	 */
	@RequestMapping("/attachInfoExtListView")
	public String attachInfoExtListView(ModelMap model) {
		return JSP_PATH + "attachInfoExtList";
	}
	
	
	@RequestMapping("/attachInfoExtListPage")
	@ResponseBody
	public Page<AttachRelExtVo> attachInfoExtListPage(SearchParam param) {
		Page<AttachRelExtVo> list = attachInfoExtService.attachRelExtListPage(param);
		return list;
	}
	
		
}
